import { createStore } from 'vuex'
import { getLocal } from '../utils/utils'


export default createStore({
  state: {
    isLogin: false
  },
  mutations: {
    loginStatus(state) {
      const token = getLocal('token')
      if (token) {
        state.isLogin = true
      }
    },
  },
  actions: {
  },
  modules: {
  }
})
